#!/usr/bin/env python3
# coding:utf-8
# __author:"Xu.rt"
# date: 2017/9/3

i = 0
while True:
    user_name = input('请输入用户名：')
    user_passwd = input('请输入密码：')
    if (user_name == 'xurt') and (user_passwd == '888888'):
        print('欢迎徐锐涛，请继续浏览。')
        break
    else:
        print('用户名或者密码错误，请重新输入')
        i = i + 1
        print('已错误输入', i, '次')
    if i == 3:
        print('已经输入错误三次，账号已被锁定！！')
        break